package com.appkubes.fintech.restful.application.pay.wechat;

import java.nio.charset.Charset;

/**
 * @description: 微信支付公共变量
 * @author: xqc
 * @date: 2019/12/27 15:11
 * @params:
 * @return:
 */
public class WeChatPayConstant {

    public  static final Charset UTF8 = Charset.forName("utf-8");
    public final static String SUCCESS = "SUCCESS"; // 返回成功定义值

    public final static String RET_CODE="result_code";//支付返回参数编码



    public final static String PAY_H5_RET_URL="mweb_url"; // H5支付 跳转地址的参数名

    public final static String NOTIFY_FAIL="<xml><return_code><![CDATA[FAIL]]></return_code><return_msg></return_msg></xml>";
    public final static String NOTIFY_SUC="<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml> ";
    public final static String NOTIFY_RET_TRADE_NO="out_trade_no"; // 业务订单号参数名
    public final static String WX_NO="transaction_id";//微信流水号，参数名

    public final static String BILL_TYPE="ALL";
    public final static String BILL_RET_CODE="return_code"; // 账单返回编码
    public final static String BILL_RET_MSG="return_msg";//账单返回描述
    public final static String BILL_DATA="data";//账单内容参数
    public final static String BILL_NO_EXIT="no bill exist"; // 表示没有交易数据

    public final static String QUERY_TRADE_STATE="trade_state";
    public final static String QUERY_TRADE_DES="trade_state_desc";
    public final static String QUERY_TRADE_TOTAL_FEE="total_fee";

    public final static String FILE_TYPE_CODE="F001001";

}
